package com.baizhi.dao;

import com.baizhi.entity.Banner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BannerDao {
    List<Banner> selectAllBanner(@Param("offset") int offset,@Param("limit") int limit);
    int  selectCount();
    int deleteBanner(int bannerId);
    int insertBanner(Banner banner);
    Banner selectByBannerId(int bannerId);
    //更改轮播图信息
    int updateBanner(Banner banner);
    int updateBanner1(Banner banner);

    //更改图片状态
    int updates(Banner banner);

    /*//更改图片状态
    int updateBannerStates(Banner banner);*/

    //批量下载方法
    List selectAlls();

    List<Banner> selectBannerByCount(@Param("count") int count);

}
